package cn.wolfcode.trip.base.query;

import com.alibaba.druid.util.StringUtils;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class QueryObject {
    private int currentPage = 1;
    private int pageSize = 3;
    private String keyword;
    //排序条件
    private String orderBy;

    public String getKeyword() {
        return StringUtils.isEmpty(keyword) ? null : keyword;
    }

    public int getStart() {
        return (currentPage - 1) * pageSize;
    }
}
